package com.ruoyi.project.mapper;

import com.ruoyi.project.ins.domain.InsAccount;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface InsAccountMapper {
    List<InsAccount> selectAccountList(InsAccount insAccount);

    InsAccount selectByUserId(@Param("userId") String userId);

    int insertInsAccount(InsAccount insAccount);

    int updateInsAccount(InsAccount insAccount);

    InsAccount selectAccountById(Long id);

    int deleteByIds(Long[] deleteIds);

    List<InsAccount> selectByIds(Long[] ids);

    List<InsAccount> selectNoNameUser();

    int updateAccountStatusById(@Param("id") Long id);

    void batchUpdateInsAccount(@Param("accountList") List<InsAccount> accountList);

    void batchUpdateSendTimes(@Param("accountList") List<InsAccount> accountList);

    void batchUpdateSuccessTimes(@Param("accountList") List<InsAccount> accountList);

    int updateSendTimesByUserId(@Param("userId") String userId);

    List<InsAccount> selectNeedCheckAccount();
}
